.class Lcom/waiqin365/lightapp/visit/b/ab;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:I

.field final synthetic b:Lcom/waiqin365/lightapp/visit/b/aa;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/b/aa;I)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/b/ab;->b:Lcom/waiqin365/lightapp/visit/b/aa;

    iput p2, p0, Lcom/waiqin365/lightapp/visit/b/ab;->a:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/ab;->b:Lcom/waiqin365/lightapp/visit/b/aa;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/b/aa;->a(Lcom/waiqin365/lightapp/visit/b/aa;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/4 v1, 0x3

    if-eq v0, v1, :cond_0

    iget v0, p0, Lcom/waiqin365/lightapp/visit/b/ab;->a:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/ab;->b:Lcom/waiqin365/lightapp/visit/b/aa;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/b/aa;->b(Lcom/waiqin365/lightapp/visit/b/aa;)Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "seniorVisitInfo"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/ab;->b:Lcom/waiqin365/lightapp/visit/b/aa;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/b/aa;->c(Lcom/waiqin365/lightapp/visit/b/aa;)Lcom/waiqin365/lightapp/visit/b/bd;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v1, "from"

    const-string/jumbo v2, "seniorVisitRecord"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "editable"

    invoke-virtual {v0, v1, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v1, "canViewCM"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/ab;->b:Lcom/waiqin365/lightapp/visit/b/aa;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/b/aa;->b(Lcom/waiqin365/lightapp/visit/b/aa;)Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/ab;->b:Lcom/waiqin365/lightapp/visit/b/aa;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/b/aa;->b(Lcom/waiqin365/lightapp/visit/b/aa;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->overridePendingTransition(II)V

    :goto_0
    return-void

    :cond_0
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const-string/jumbo v2, "from"

    const-string/jumbo v3, "daily_main"

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string/jumbo v2, "position"

    iget v3, p0, Lcom/waiqin365/lightapp/visit/b/ab;->a:I

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v2, "photolist"

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/b/ab;->b:Lcom/waiqin365/lightapp/visit/b/aa;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/b/aa;->a(Lcom/waiqin365/lightapp/visit/b/aa;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/b/ab;->b:Lcom/waiqin365/lightapp/visit/b/aa;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/b/aa;->b(Lcom/waiqin365/lightapp/visit/b/aa;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/ab;->b:Lcom/waiqin365/lightapp/visit/b/aa;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/b/aa;->b(Lcom/waiqin365/lightapp/visit/b/aa;)Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/ab;->b:Lcom/waiqin365/lightapp/visit/b/aa;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/b/aa;->b(Lcom/waiqin365/lightapp/visit/b/aa;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    const v1, 0x7f040027

    invoke-virtual {v0, v1, v4}, Landroid/app/Activity;->overridePendingTransition(II)V

    goto :goto_0
.end method
